<template>
  <div id="app">
    <app-header></app-header>
    <div class="content">
      <div>
        <router-link to="/home">商品</router-link>
      </div>
      <div>
        <router-link to="/evaluate">评价</router-link>
      </div>
      <div>
        <router-link to="/business">商家</router-link>
      </div>
    </div>
    <router-view></router-view>
    <app-pay class="router"></app-pay>
  </div>
  
</template>

<script>
import {mapActions} from "vuex"
import headerx from "components/header.vue"
import pay from "components/pay.vue"
export default {
  name: 'App',
  components:{
    "app-header":headerx,
    "app-pay":pay
  },
  methods:{
    ...mapActions(["getSellerInfo","getGoodInfo","getRatingsInfo"]),
  },
  computed:{

  },
  async mounted(){
    await this.getRatingsInfo()
    await this.getSellerInfo()
    await this.getGoodInfo()
  }
}
</script>

<style lang="less" scoped>
#app{
  position: relative;
  .content{
    display:flex;
    justify-content: space-around;
    height:0.8rem; 
    align-items: center;
    border-bottom: 0.01rem solid;
    border-bottom-color:#E8E9EA;
    div{
      font-size: 0.28rem;
      color: rgb(77, 85, 93);
      line-height: 0.28rem;
    }
    .active{
      font-size: 0.28rem;
      color: rgb(240, 20, 20);
      line-height: 0.28rem;
    }
  }
  .router{
    display:absolute;
    left: 0;
    right:0;
    bottom:0;
    top: 1.76rem;
  }
}
</style>
